home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
MOUSE
/
WIMPINFO
/
!WimpInfo
/
!Help
next >
Wrap
Text File
|
1995-08-03
|
5KB
|
134 lines
!WimpInfo v1.20 Manual
——————————————————————
About !WimpInfo
———————————————
!WimpInfo is a utility that displays info about
• The position and button status of the mouse pointer
• A window on the screen
• An icon in a window
• Additionally, you can save any window as a Template file, together with
its private sprites
This info can be handy for programmers who are writing Wimp (desktop)
applications.
!WimpInfo is FreeWare. For conditions of use, read the copyright notice at
the end of this manual.
How to use
——————————
When the program starts, it installs an icon on the icon bar. Click MENU on
it, and select which info you want to see. The info is shown in a window.
Click ADJUST to close all the info windows. When you later click SELECT, the
situation is restored, i.e. the windows that were closed by the ADJUST-click
are opened again.
The 'Window info' and 'Icon info' windows can show extended info. Click on
the 'Toggle size' icon.
If the option 'Shift-activated' is on, the info windows are only updated when
the Shift key is pressed. This has two advantages:
• It takes less processing power.
• You can 'freeze' the info, e.g. to compare two icons that are at some
distance from each other.
When the option is off updating is continuous.
If the option 'Grab Template' is on, the information of the window under the
pointer can be saved as a template file when the Alt key is pressed. When the
window you grab uses any other sprite areas than the Wimp sprite pool, the
save box will allow you to switch between the Template file and a Sprite
file. When you save this Sprite file, it will contain all sprite areas used
in this window.
Technical
—————————
WimpInfo is written to work on any version of RISC OS, however it was mostly
tested on RISC OS 3.10. Let me know if there are any problems on other
versions of RISC OS.
The program reserves a reasonable buffer to hold the template data which is
decoded at the moment you press Alt. The window's sprite areas can however be
very large and they are only read when you save the file. This means that you
can still save the Template file after you quit the window's application, but
the application must still be running when you save the Sprite file.
The saved Template file is not an exact copy of the window data. WimpInfo
checks and fixes things which are not possible in Template files:
• All strings in a Template file are terminated by character 13
• All sprite areas are set to the Wimp sprite pool
• Sprite pointers are converted to sprite names
• If the given indirected icon max data length is less than the actual
length, the actual lenght is used instead
• The data of deleted icons is set to a constant value, Wimp_LoadTemplate
will complain if the data of a deleted icon is illegeal :-(
• WimpInfo will complain about illegal indirection pointers, it then uses
the truncated data if possible and still generates a valid Template
The program uses a fixed sized buffer to hold the template data. This can
give the message "Too many icons/indirected data/fonts/sprite areas in this
template" when you try to grab a very complex window, the template can not be
saved. The maximum sizes for the buffers can be increased in the following
lines in the source:
1550 max_ic%=100 : REM Max allowed icons in saved template
1560 max_ind%=2048 : REM Max size of indirected data
1570 max_fonts%=10 : REM Max nr. of different fonts in a window
1580 max_areas%=10 : REM Max allowed different (non-Wimp) sprite areas in a window
The !RunImage file is a crunched version of Source. !RunImage just about runs
in a 32k WimpSlot, source needs a 64k WimpSlot or more when you increase the
buffers significantly.
I had some trouble to get v1.20 crunched into a 32k WimpSlot. It seems to
work now, but try increasing the WimpSlot if the program behaves strangely.
History
———————
1.00 Dick Alstein's original version. Provides information windows for:
• position and button status of the mouse
• window under the pointer
• icon under the pointer
1.10 Unreleased version. Additions by Gert-Jan de Vos:
• DragASprite support and 3D Templates according to CMOS bits
• windows can be saved as a Template file
1.20 Numerous bugfixes from 1.10 and some additions:
• hourglass is shown for long decoding/saving
• private sprite areas can be saved as well
• size of icon/window/work area is shown next to coordinates
Copyright notice
————————————————
This program is FreeWare. This means that I retain the copyright, except for
the MenuUtils module, which is © Alex Petrov. You may freely copy and
distribute it, provided that it is complete with all original files, and that
you do not sell it. PD libraries may charge a nominal fee for the cost of
duplication, postage etc. When you use the program, you do so entirely at
your own risk. You may change the program to suit your own needs. If it's a
bug fix, or if you think it's an improvement, then please send the changes to
me.
Dick Alstein
Lijnslagerstraat 204
5625 BP Eindhoven
The Netherlands
Template/sprite save additions by:
Gert-Jan de Vos
Benedenbeekloop 18
5662 HL Geldrop
The Netherlands
devos@eb.ele.tue.nl